import 'package:flutter/material.dart';
import 'package:flutter_magic_planet/common/constant.dart';
import 'package:flutter_magic_planet/component/block_button.dart';
import 'package:get/get.dart';

import 'feedback_sheet.dart';

/// 好评鼓励
class EncouragementDialog extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.symmetric(horizontal: paddingHorizontal),
      child: Column(
        children: [
          SizedBox(height: 12),
          Container(
            alignment: Alignment.center,
            padding: EdgeInsets.symmetric(horizontal: 20),
            child: Text(
              '据说，长得好看的都给了五星好评～',
              textAlign: TextAlign.center,
              style: TextStyle(color: Colors.black54, fontSize: 15),
            ),
          ),
          SizedBox(height: 32),
          Container(
            margin: EdgeInsets.symmetric(horizontal: 18),
            child: BlockButton(
              color: primaryColor,
              title: '五星好评',
              onTap: () {
                //
              },
            ),
          ),
          SizedBox(height: 12),
          GestureDetector(
            child: Text(
              '反馈和建议',
              style: TextStyle(color: Colors.black54, fontSize: 14),
            ),
            onTap: () {
              Get.back();
              Get.bottomSheet(FeedbackSheet(), elevation: 0);
            },
          ),
        ],
      ),
    );
  }
}
